/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ps.util;

/**
 *
 * @author adil
 * Logging implementation
 * Not finished
 */

/*
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
import java.util.logging.Logger;

public class Log {
	public static Logger log;
	public static  void log(){
		 try {
		      boolean append = true;
		      FileHandler fh = new FileHandler("logger.log", append);
		     // fh.setFormatter(new XMLFormatter());
		      fh.setFormatter(new Formatter(){
		    	  public String format(LogRecord rec) {
		    		   StringBuffer buf = new StringBuffer(1000);
		    		   
		               buf.append("[").append(new java.util.Date()).append("]");
		               buf.append("\n");
		               buf.append(' ');
		               buf.append(rec.getLevel());
		               buf.append(' ');
		               buf.append(formatMessage(rec));
		               buf.append('\n');
		               return buf.toString();
		    	  }
		      }
		      );
		      log = Logger.getLogger("TestLog");
		      log.addHandler(fh);
		    
		    }
		    catch (IOException e) {
		      e.printStackTrace();
		    }
	}

}

*/